﻿
var target = document.querySelector("a.shopLink");
var simulateMouseDown = function (target)
{
    var evt = document.createEvent("MouseEvents");
    evt.initMouseEvent("mousedown", true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
    target.dispatchEvent(evt);
    evt.initMouseEvent("mouseup", true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
    target.dispatchEvent(evt);
}
simulateMouseDown(target);

var simulateMouseOver = function (target)
{
    var evt = document.createEvent("MouseEvents");
    evt.initMouseEvent("mouseover", true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
    target.dispatchEvent(evt);
}
simulateMouseOver(document.querySelector('#shop-info'));